import request from '@/utils/request'

// 查询商家活动视频列表
export function listActivityvideo(query) {
  return request({
    url: '/merchant/activityvideo/list',
    method: 'get',
    params: query
  })
}

// 查询商家活动视频详细
export function getActivityvideo(id) {
  return request({
    url: '/merchant/activityvideo/' + id,
    method: 'get'
  })
}

// 新增商家活动视频
export function addActivityvideo(data) {
  return request({
    url: '/merchant/activityvideo',
    method: 'post',
    data: data
  })
}

// 修改商家活动视频
export function updateActivityvideo(data) {
  return request({
    url: '/merchant/activityvideo',
    method: 'put',
    data: data
  })
}

// 删除商家活动视频
export function delActivityvideo(id) {
  return request({
    url: '/merchant/activityvideo/' + id,
    method: 'delete'
  })
}

// 导出商家活动视频
export function exportActivityvideo(query) {
  return request({
    url: '/merchant/activityvideo/export',
    method: 'get',
    params: query
  })
}